package seatiger.tomcat.util.http.mapper;

/**
 * mapper注册器
 */
public class MapperRegistry {
    private static final Mapper mapper = new Mapper();
    public static Mapper getMapper() {
        return mapper;
    }
    public static void registryHost(String name, Object host) {
        mapper.addHost(name,host);
    }
    public static void registryContext(String hostName, String path, Object context) {
        mapper.addContext(hostName,path,context);
    }
    public static void registryWrapper(String hostName, String contextPath, String path, Object wrapper) {
        mapper.addWrapper(hostName,contextPath,path,wrapper);
    }

    public static Mapper getInstance() {
        return mapper;
    }
}
